package com.lwz.mediator.computer;

import com.lwz.mediator.Colleague;
import com.lwz.mediator.Mediator;

public class CDDriver extends Colleague {
	
	//自身的业务状态数据
	private String data = "";
	
	
	public CDDriver(Mediator mediator) {
		super(mediator);
	}
	
	@Override
	public void doSomeThing() {
		

	}

    public void readCD(){
    	this.data = "设计模式,值得好好学习";	
    	this.getMediator().change(this);
          }

	
	
	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}


}
